//
//  FlatToolBar.h
//  AppFrameWork
//
//  Created by Le Anh Tai on 7/19/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FlatToolBarViewItem.h"
@protocol FlatToolBarViewDelegate;
@interface FlatToolBarView : UIView

@property (nonatomic,strong) NSMutableArray *toolbarItems;
@property (nonatomic,weak) FlatToolBarViewItem *selectedItem;
@property (nonatomic, assign) NSInteger selectedIndex;
@property (nonatomic,weak) id<FlatToolBarViewDelegate> delegate;

- (FlatToolBarViewItem*)addToolbarItemWithTitle:(NSString*)title icon:(NSString*)icon;
@end

@protocol FlatToolBarViewDelegate <NSObject>

- (void)flatToolBar:(FlatToolBarView*)toolBarView didSelectedAtIndex:(NSInteger)selectedIndex;

@end
